﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfTravelScenicInfo1.aspx.cs" Inherits="msBsc.WebUi.wMall.Public.wfTravelScenicInfo1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="/jqPlugin/SelectSimu/css/base.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sLayout.css" rel="stylesheet" />
    <style type="text/css">
        .viewPC {
            width: 1200px;
            margin: auto;
            display: table;
        }

        .nav {
            margin: 30px 0px;
            text-align: left;
        }

            .nav a {
                color: #999;
                font-size: 14px;
            }

            .nav span {
                color: #dedede;
                font-size: 14px;
                margin: 0px 12px;
            }

            .nav .nav_list {
                color: #3398dc;
            }

        .travelInfo {
            margin-bottom: 10px;
            margin-top: 10px;
            min-height: 620px;
            overflow: hidden;
            width: 1200px;
            text-align: left;
        }

            .travelInfo img {
                max-width: 1200px !important;
            }

        .pageChange {
            padding-bottom: 10px;
            text-align: center;
        }

            .pageChange a {
                color: #3398dc;
                margin-right: 20px;
            }
    </style>
</head>
<body>
    <%=msBsc.WebUi.Code.QtHtmlGet.GetHeaderLoginInfo1() %>
    <div class="viewPC">
        <input type="hidden" id="scenicId" />
        <div class="nav">
            <a>旅游资讯</a><span>></span><a id="topArea">北京</a><span>></span><a id="secendAreaId">北京</a><span>></span><a id="areaId">东城</a><span>></span><a class="nav_list">景点</a>
        </div>
        <div class="travelInfo" id="contentInfo">
           
        </div>
        <div class="pageChange">
            <span id="previousName">上一条：</span><a id="previous"></a>

            <span id="nextName">下一条：</span><a id="next"></a>
        </div>
    </div>
    <!--start JS引用-->
    <script src="/jqPlugin/js/jquery-1.8.3.min.js"></script>
    <script src="/jqPlugin/js/jBase.js"></script>
    <script src="/jqPlugin/js/jBPage.js"></script>
    <script src="/jqPlugin/js/laytpl.js"></script>
    <script src="/jqPlugin/SelectSimu/js/SelectSimu.js"></script>
    <script src="/themes/wStyle1/js/comm/VerifyJs.js"></script>
    <script src="/themes/wStyle1/js/comm/jsLayout.js"></script>
    <!--end JS引用-->
    <script type="text/javascript">
        (function () {
            $("#scenicId").val(GetQueryStr("scenicId"));
        })()
        function btnDo(sEbtn) {
            GtGrid1Action = sEbtn;
            var opart = GetGtParam();
            ajaxComm(opart);
        };
        //执行AJAX调用时获取参数
        function GetGtParam() {
            var _jsParam = new jsonRow();
            _jsParam.AddCell("scenicId", $("#scenicId").val());
            _jsParam.AddCell("ACTION", GtGrid1Action);
            return _jsParam;
        };
        btnDo("getScenicInfo");

        function setScenicInfo(data) {
            $("#contentInfo").html("");
            if (IsNull(data)) {
                return;
            }
            document.title += "-" + data.rows[0].NAME;
            $("#topArea").text(data.rows[0].COUNTRYNAME);
            $("#topArea").attr("data-value", data.rows[0].COUNTRYID);
            $("#secendAreaId").text(data.rows[0].CITYNAME);
            $("#secendAreaId").attr("data-value", data.rows[0].CITYID);
            $("#areaId").text(data.rows[0].DESTINATIONNAME);
            $("#areaId").attr("data-value", data.rows[0].DISTIANTIONID);
            doBoundContent(data.rows[0].CONTENT_FILE_URL);
            $("#scenicList").attr("href", "/wp_TravelScenicList.htm?countryId=" + data.rows[0].COUNTRYID + "&cityId=" + data.rows[0].CITYID + "&destionId=" + data.rows[0].DISTIANTIONID + "&pIndex=1");
            $("#areaId").attr("href", "/wp_TravelScenicList.htm?countryId=" + data.rows[0].COUNTRYID + "&cityId=" + data.rows[0].CITYID + "&destionId=" + data.rows[0].DISTIANTIONID + "&pIndex=1");
            $("#secendAreaId").attr("href", "/wp_TravelScenicList.htm?countryId=" + data.rows[0].COUNTRYID + "&cityId=" + data.rows[0].CITYID + "&destionId=&pIndex=1");
            $("#topArea").attr("href", "/wp_TravelScenicList.htm?countryId=" + data.rows[0].COUNTRYID + "&cityId=&destionId=&pIndex=1");
            if (IsNull(data.rows[0].PREVIEWNAME)) {
                $("#previousName").hide();
                $("#previous").text("");
                $("#previous").attr("href", "/wp_TravelScenicInfo.htm?scenicId=" + data.rows[0].PREVIEWID);
            } else {
                $("#previousName").show();
                $("#previous").text(data.rows[0].PREVIEWNAME);
                $("#previous").attr("href", "/wp_TravelScenicInfo.htm?scenicId=" + data.rows[0].PREVIEWID);
            }
            if (IsNull(data.rows[0].NEXTNAME)) {
                $("#nextName").hide();
                $("#next").text("");
                $("#next").attr("href", "/wp_TravelScenicInfo.htm?scenicId=" + data.rows[0].NEXTID);
            } else {
                $("#nextName").show();
                $("#next").text(data.rows[0].NEXTNAME);
                $("#next").attr("href", "/wp_TravelScenicInfo.htm?scenicId=" + data.rows[0].NEXTID);
            }
        }

        function doBoundContent(_shopurl) {
            if (_shopurl != null && _shopurl != undefined && _shopurl != '') {
                jQuery.loadHtml(_shopurl).done(function (_rethtml) {
                    var tpl = HtmlUtil.htmlDecode(_rethtml);
                    $("#contentInfo").html(tpl);
                });
            }
        };
    </script>
</body>
</html>
